<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="chrome=1" />
  <link rel="icon" type="image/png" href="/images/logo.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <title>Method Draw SVG Editor</title>
  <meta charset="utf-8">
  <meta name="description"
    content="Method Draw is an open source SVG editor for the web, you can use it online without signing up.">

  <!--#region abc-->
  <!-- build:css all.css -->
  <link rel="stylesheet" href="css/jpicker.css" type="text/css" />
  <link rel="stylesheet" href="css/jgraduate.css" type="text/css" />
  <link rel="stylesheet" href="css/fonts.css" type="text/css" />
  <link rel="stylesheet" href="css/dropdown.css" type="text/css" />
  <link rel="stylesheet" href="css/draginput.css" type="text/css" />
  <link rel="stylesheet" href="css/menu.css" type="text/css" />
  <link rel="stylesheet" href="css/rulers.css" type="text/css" />
  <link rel="stylesheet" href="css/palette.css" type="text/css" />
  <link rel="stylesheet" href="css/color-tool.css" type="text/css" />
  <link rel="stylesheet" href="css/context-menu.css" type="text/css" />
  <link rel="stylesheet" href="css/shapelib.css" type="text/css" />
  <link rel="stylesheet" href="css/method-draw.css" type="text/css" />
  <link rel="stylesheet" href="css/animationEditor.css" type="text/css" />
  <!--#endregion-->
  <!-- endbuild -->
  <style>
    td input {
      width: 100%;
    }
  </style>
</head>

<body>
  <!--#region html-->
  <div id="svg_editor">

    <div id="rulers">
      <div id="ruler_corner"></div>
      <div id="ruler_x">
        <div id="ruler_x_cursor"></div>
        <div>
          <canvas height="15"></canvas>
        </div>
      </div>
      <div id="ruler_y">
        <div id="ruler_y_cursor"></div>
        <div>
          <canvas width="15"></canvas>
        </div>
      </div>
    </div>

    <div id="workarea">
      <div id="svgcanvas" style="position:relative">

      </div>
    </div>

    <div id="menu_bar" style="display: none;">
      <a class="menu">
        <div class="menu_title" id="logo">
          <svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
            <path d="M-.1 16.1L16 .04V16.1H-.1z" fill="#ccc" />
            <path d="M0 16.1V.1l16 16H0z" fill="#666" />
          </svg>
        </div>
        <div class="menu_list">
          <div id="tool_about" class="menu_item">About this Editor...</div>
          <div class="separator"></div>
          <div id="tool_about" class="menu_item">Keyboard Shortcuts...</div>
        </div>
      </a>

      <div class="menu">
        <div class="menu_title">文件</div>
        <div class="menu_list" id="file_menu">
          <div id="tool_clear" class="menu_item">New Document</div>
          <div id="tool_open" class="menu_item" style="display: none;">
            <div id="fileinputs"></div>Open SVG...<span class="shortcut">⌘H</span>
          </div>
          <div id="tool_import" class="menu_item" style="display: none;">
            <div id="fileinputs_import"></div>Import Image...
          </div>
          <div id="tool_save" class="menu_item">Save Image... <span class="shortcut">⌘S</span></div>
          <div id="tool_export" class="menu_item">Export as PNG</div>
        </div>
      </div>

      <div class="menu">
        <div class="menu_title">Edit</div>
        <div class="menu_list" id="edit_menu">
          <div class="menu_item" id="tool_undo">Undo <span class="shortcut">⌘Z</span></div>
          <div class="menu_item" id="tool_redo">Redo <span class="shortcut">⌘Y</span></div>
          <div class="separator"></div>
          <div class="menu_item action_selected disabled" id="tool_cut">Cut <span class="shortcut">⌘X</span></div>
          <div class="menu_item action_selected disabled" id="tool_copy">Copy <span class="shortcut">⌘C</span></div>
          <div class="menu_item action_selected disabled" id="tool_paste">Paste <span class="shortcut">⌘V</span></div>
          <div class="menu_item action_selected disabled" id="tool_clone">Duplicate <span class="shortcut">⌘D</span>
          </div>
          <div class="menu_item action_selected disabled" id="tool_delete">Delete <span>⌫</span></div>
        </div>
      </div>

      <div class="menu">
        <div class="menu_title">Object</div>
        <div class="menu_list" id="object_menu">
          <div class="menu_item action_selected disabled" id="tool_move_top">Bring to Front <span
              class="shortcut">⌘⇧↑</span></div>
          <div class="menu_item action_selected disabled" id="tool_move_up">Bring Forward <span
              class="shortcut">⌘↑</span></div>
          <div class="menu_item action_selected disabled" id="tool_move_down">Send Backward <span
              class="shortcut">⌘↓</span></div>
          <div class="menu_item action_selected disabled" id="tool_move_bottom">Send to Back <span
              class="shortcut">⌘⇧↓</span></div>
          <div class="separator"></div>
          <div class="menu_item action_multi_selected disabled" id="tool_group">Group Elements <span
              class="shortcut">⌘G</span></div>
          <div class="menu_item action_group_selected disabled" id="tool_ungroup">Ungroup Elements <span
              class="shortcut">⌘⇧G</span></div>
          <div class="separator"></div>
          <div class="menu_item action_path_convert_selected disabled" id="tool_topath">Convert to Path</div>
          <div class="menu_item action_path_selected disabled" id="tool_reorient">Reorient path</div>
        </div>
      </div>

      <div class="menu">
        <div class="menu_title">View</div>
        <div class="menu_list" id="view_menu">
          <div class="menu_item push_button_pressed" id="tool_rulers">View Rulers</div>
          <div class="menu_item" id="tool_wireframe">View Wireframe</div>
          <div class="menu_item" id="tool_snap">Snap to Grid</div>
          <div class="separator"></div>
          <div class="menu_item" id="tool_source">Source... <span class="shortcut">⌘U</span></div>
        </div>
      </div>



    </div>

    <div id="tools_top" class="tools_panel">

      <div id="canvas_panel" class="context_panel">

        <h4 class="clearfix">画布</h4>

        <label data-title="更改画布宽度">
          <input size="3" id="canvas_width" type="text" pattern="[0-9]*" />
          <span class="icon_label">宽度</span>
        </label>
        <label data-title="更改画面高度">
          <input id="canvas_height" size="3" type="text" pattern="[0-9]*" />
          <span class="icon_label">高度</span>
        </label>


        <label data-title="更改画面背景颜色" class="draginput">
          <span>颜色</span>
          <div id="color_canvas_tools">
            <div class="color_tool active" id="tool_canvas">
              <div class="color_block">
                <div id="canvas_bg"></div>
                <div id="canvas_color"></div>
              </div>
            </div>
          </div>
        </label>

        <div class="draginput">
          <span>标准画布</span>
          <select id="resolution">
            <option id="selectedPredefined" selected="selected">Custom</option>
            <option>640x480</option>
            <option>800x600</option>
            <option>1024x768</option>
            <option>1280x960</option>
            <option>1600x1200</option>
            <option id="fitToContent" value="content">Fit to Content</option>
          </select>
          <div class="caret"></div>
          <label id="resolution_label">Custom</label>
        </div>

      </div>

      <div id="rect_panel" class="context_panel">
        <h4 class="clearfix">矩形&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label>
          <input id="rect_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x"
            pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label>
          <input id="rect_y" class="attr_changer" data-title="Change Y coordinate" size="3" data-attr="y"
            pattern="[0-9]*" />
          <span>Y</span>
        </label>
        <label id="rect_width_tool attr_changer" data-title="Change rectangle width">
          <input id="rect_width" class="attr_changer" size="3" data-attr="width" type="text" pattern="[0-9]*" />
          <span class="icon_label">宽度</span>
        </label>
        <label id="rect_height_tool" data-title="Change rectangle height">
          <input id="rect_height" class="attr_changer" size="3" data-attr="height" type="text" pattern="[0-9]*" />
          <span class="icon_label">高度</span>
        </label>
      </div>

      <div id="path_panel" class="context_panel">
        <h4 class="clearfix">Path&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label>
          <input id="path_x" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3" data-attr="x"
            pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label>
          <input id="path_y" class="attr_changer" data-title="Change ellipse's cy coordinate" size="3" data-attr="y"
            pattern="[0-9]*" />
          <span>Y</span>
        </label>
      </div>

      <div id="image_panel" class="context_panel">
        <h4>Image&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label>
          <input id="image_x" class="attr_changer" data-title="Change X coordinate" size="3" data-attr="x"
            pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label>
          <input id="image_y" class="attr_changer" data-title="Change Y coordinate" size="3" data-attr="y"
            pattern="[0-9]*" />
          <span>Y</span>
        </label>
        <label>
          <input id="image_width" class="attr_changer" data-title="Change image width" size="3" data-attr="width"
            pattern="[0-9]*" />
          <span class="icon_label">Width</span>
        </label>
        <label>
          <input id="image_height" class="attr_changer" data-title="Change image height" size="3" data-attr="height"
            pattern="[0-9]*" />
          <span class="icon_label">Height</span>
        </label>
      </div>

      <div id="circle_panel" class="context_panel">
        <h4>Circle&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label id="tool_circle_cx">
          <span>Center X</span>
          <input id="circle_cx" class="attr_changer" title="Change circle's cx coordinate" size="3" data-attr="cx" />
        </label>
        <label id="tool_circle_cy">
          <span>Center Y</span>
          <input id="circle_cy" class="attr_changer" title="Change circle's cy coordinate" size="3" data-attr="cy" />
        </label>
        <label id="tool_circle_r">
          <span>Radius</span>
          <input id="circle_r" class="attr_changer" title="Change circle's radius" size="3" data-attr="r" />
        </label>
      </div>

      <div id="ellipse_panel" class="context_panel">
        <h4>Ellipse&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label id="tool_ellipse_cx">
          <input id="ellipse_cx" class="attr_changer" data-title="Change ellipse's cx coordinate" size="3"
            data-attr="cx" pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label id="tool_ellipse_cy">
          <input id="ellipse_cy" class="attr_changer" data-title="Change ellipse's cy coordinate" size="3"
            data-attr="cy" pattern="[0-9]*" />
          <span>Y</span>
        </label>
        <label id="tool_ellipse_rx">
          <input id="ellipse_rx" class="attr_changer" data-title="Change ellipse's x radius" size="3" data-attr="rx"
            pattern="[0-9]*" />
          <span>Radius X</span>
        </label>
        <label id="tool_ellipse_ry">
          <input id="ellipse_ry" class="attr_changer" data-title="Change ellipse's y radius" size="3" data-attr="ry"
            pattern="[0-9]*" />
          <span>Radius Y</span>
        </label>
      </div>

      <div id="line_panel" class="context_panel">
        <h4>Line&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label id="tool_line_x1">
          <input id="line_x1" class="attr_changer" data-title="Change line's starting x coordinate" size="3"
            data-attr="x1" pattern="[0-9]*" />
          <span>Start X</span>
        </label>
        <label id="tool_line_y1">
          <input id="line_y1" class="attr_changer" data-title="Change line's starting y coordinate" size="3"
            data-attr="y1" pattern="[0-9]*" />
          <span>Start Y</span>
        </label>
        <label id="tool_line_x2">
          <input id="line_x2" class="attr_changer" data-title="Change line's ending x coordinate" size="3"
            data-attr="x2" pattern="[0-9]*" />
          <span>End X</span>
        </label>
        <label id="tool_line_y2">
          <input id="line_y2" class="attr_changer" data-title="Change line's ending y coordinate" size="3"
            data-attr="y2" pattern="[0-9]*" />
          <span>End Y</span>
        </label>
      </div>

      <div id="text_panel" class="context_panel">
        <h4>Text&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label>
          <input id="text_x" class="attr_changer" data-title="Change text x coordinate" size="3" data-attr="x"
            pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label>
          <input id="text_y" class="attr_changer" data-title="Change text y coordinate" size="3" data-attr="y"
            pattern="[0-9]*" />
          <span>Y</span>
        </label>

        <label id="tool_font_size" data-title="Change Font Size">
          <input id="font_size" size="3" value="0" />
          <span id="font_sizeLabel" class="icon_label">Font Size</span>
        </label>
        <div class="toolset draginput select twocol" id="tool_font_family">
          <!-- Font family -->
          <span>Font</span>
          <div id="preview_font" style="font-family: Helvetica, Arial, sans-serif;">Helvetica</div>
          <div class="caret"></div>
          <input id="font_family" data-title="Change Font Family" size="12" type="hidden" />
          <select id="font_family_dropdown">
            <option value="Arvo, sans-serif">Arvo</option>
            <option value="'Courier New', Courier, monospace">Courier</option>
            <option value="Euphoria, sans-serif">Euphoria</option>
            <option value="Georgia, Times, 'Times New Roman', serif">Georgia</option>
            <option value="Helvetica, Arial, sans-serif" selected="selected">Helvetica</option>
            <option value="Junction, sans-serif">Junction</option>
            <option value="'League Gothic', sans-serif">League Gothic</option>
            <option value="Oswald, sans-serif">Oswald</option>
            <option value="'Palatino Linotype', 'Book Antiqua', Palatino, serif">Palatino</option>
            <option value="'Trebuchet MS', Gadget, sans-serif">Trebuchet</option>
            <option value="'Shadows Into Light', serif">Shadows Into Light</option>
            <option value="'Simonetta', serif">Simonetta</option>
            <option value="'Times New Roman', Times, serif">Times</option>
          </select>
          <div class="tool_button" id="tool_bold" data-title="Bold Text [B]">B</div>
          <div class="tool_button" id="tool_italic" data-title="Italic Text [I]">i</div>
        </div>


        <!-- Not visible, but still used -->
        <input id="text" type="text" size="35" />
      </div>

      <!-- formerly gsvg_panel -->
      <div id="container_panel" class="context_panel clearfix">
      </div>

      <div id="use_panel" class="context_panel clearfix">
        <div class="tool_button clearfix" id="tool_unlink_use"
          data-title="Break link to reference element (make unique)">Break link reference</div>
      </div>

      <div id="g_panel" class="context_panel clearfix">
        <h4>Group&emsp;:&emsp;<span id="svg_id"></span></h4>
        <label>
          <input id="g_x" class="attr_changer" data-title="Change groups's x coordinate" size="3" data-attr="x"
            pattern="[0-9]*" />
          <span>X</span>
        </label>
        <label>
          <input id="g_y" class="attr_changer" data-title="Change groups's y coordinate" size="3" data-attr="y"
            pattern="[0-9]*" />
          <span>Y</span>
        </label>
      </div>

      <div id="path_node_panel" class="context_panel clearfix">
        <h4>Edit Path</h4>

        <label id="tool_node_x">
          <input id="path_node_x" class="attr_changer" data-title="Change node's x coordinate" size="3" data-attr="x" />
          <span>X</span>
        </label>
        <label id="tool_node_y">
          <input id="path_node_y" class="attr_changer" data-title="Change node's y coordinate" size="3" data-attr="y" />
          <span>Y</span>
        </label>

        <div id="segment_type" class="draginput label">
          <span>线段类型</span>
          <select id="seg_type" data-title="更改线段类型">
            <option id="straight_segments" selected="selected" value="4">直线</option>
            <option id="curve_segments" value="6">曲线</option>
          </select>
          <div class="caret"></div>
          <label id="seg_type_label">Straight</label>
        </div>

        <!--
    <label class="draginput checkbox" data-title="Link Control Points">
      <span>Linked Control Points</span>
      <div class="push_bottom"><input type="checkbox" id="tool_node_link" checked="checked" /></div>
    </label>
  -->

        <div class="clearfix"></div>
        <div class="tool_button" id="tool_node_clone" title="Adds a node">添加节点</div>
        <div class="tool_button" id="tool_node_delete" title="Delete Node">删除节点</div>
        <div class="tool_button" id="tool_openclose_path" title="Open/close sub-path">删除线段</div>
        <!--<div class="tool_button" id="tool_add_subpath" title="Add sub-path"></div>-->
      </div>

      <!-- Buttons when a single element is selected -->
      <div id="selected_panel" class="context_panel">

        <label id="tool_angle" data-title="Change rotation angle" class="draginput">
          <input id="angle" class="attr_changer" size="2" value="0" data-attr="transform" data-min="-180" data-max="180"
            type="text" />
          <span class="icon_label">角度</span>
          <div id="tool_angle_indicator">
            <div id="tool_angle_indicator_cursor"></div>
          </div>
        </label>

        <label class="toolset" id="tool_opacity" data-title="Change selected item opacity">
          <input id="group_opacity" class="attr_changer" data-attr="opacity" data-multiplier="0.01" size="3" value="100"
            step="5" min="0" max="100" />
          <span id="group_opacityLabel" class="icon_label">透明度</span>
        </label>

        <div class="toolset" id="tool_blur" data-title="Change gaussian blur value">
          <label>
            <input id="blur" size="2" value="0" step=".1" min="0" max="10" />
            <span class="icon_label">边界模糊</span>
          </label>
        </div>

        <label id="cornerRadiusLabel" data-title="Change Rectangle Corner Radius">
          <input id="rect_rx" size="3" value="0" data-attr="rx" class="attr_changer" type="text" pattern="[0-9]*" />
          <span class="icon_label">圆角</span>
        </label>

        <div class="clearfix"></div>
        <div id="align_tools">
          <h4>对齐</h4>
          <div class="toolset align_buttons" id="tool_position">
            <label>
              <div class="col last clear" id="position_opts">
                <div class="draginput_cell" id="tool_posleft" title="左对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 2 1 L 2 5 L 14 5 L 14 11 L 2 11 L 2 16 L 20 16 L 20 22 L 2 22 L 2 26 L 1 26 L 1 1 L 2 1 Z" />
                  </svg>
                </div>
                <div class="draginput_cell" id="tool_poscenter" title="居中对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 13 1 L 14 1 L 14 6 L 22 6 L 22 12 L 14 12 L 14 15 L 19 15 L 19 21 L 14 21 L 14 26 L 13 26 L 13 21 L 8 21 L 8 15 L 13 15 L 13 12 L 5 12 L 5 6 L 13 6 L 13 1 Z" />
                  </svg>
                </div>
                <div class="draginput_cell" id="tool_posright" title="右对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 25 1 L 25 5 L 13 5 L 13 11 L 25 11 L 25 16 L 7 16 L 7 22 L 25 22 L 25 26 L 26 26 L 26 1 L 25 1 Z" />
                  </svg>
                </div>
                <div class="draginput_cell" id="tool_postop" title="上对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 1 2 L 5 2 L 5 14 L 11 14 L 11 2 L 16 2 L 16 20 L 22 20 L 22 2 L 26 2 L 26 1 L 1 1 L 1 2 Z" />
                  </svg>
                </div>
                <div class="draginput_cell" id="tool_posmiddle" title="中间对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 26 13 L 26 14 L 21 14 L 21 22 L 15 22 L 15 14 L 12 14 L 12 19 L 6 19 L 6 14 L 1 14 L 1 13 L 6 13 L 6 8 L 12 8 L 12 13 L 15 13 L 15 5 L 21 5 L 21 13 L 26 13 Z" />
                  </svg>
                </div>
                <div class="draginput_cell" id="tool_posbottom" title="下对齐">
                  <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
                    <path
                      d="M 1 25 L 5 25 L 5 13 L 11 13 L 11 25 L 16 25 L 16 7 L 22 7 L 22 25 L 26 25 L 26 26 L 1 26 L 1 25" />
                  </svg>
                </div>
              </div>
            </label>
          </div>
        </div>
      </div>

      <!-- Buttons when multiple elements are selected -->
      <div id="multiselected_panel" class="context_panel clearfix">
        <h4 class="hidable">多个元素</h4>

        <div class="toolset align_buttons" style="position: relative">
          <label id="tool_align_relative" style="margin-top: 10px;">
            <select id="align_relative_to" title="Align relative to ...">
              <option id="selected_objects" value="selected">对齐到对象</option>
              <option id="page" value="page">对齐到画布边界</option>
            </select>
          </label>
          <h4>.</h4>
          <div class="col last clear">
            <div class="draginput_cell" id="tool_alignleft" title="左对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path d="M 2 1 L 2 5 L 14 5 L 14 11 L 2 11 L 2 16 L 20 16 L 20 22 L 2 22 L 2 26 L 1 26 L 1 1 L 2 1 Z" />
              </svg>
            </div>
            <div class="draginput_cell" id="tool_aligncenter" title="居中对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path
                  d="M 13 1 L 14 1 L 14 6 L 22 6 L 22 12 L 14 12 L 14 15 L 19 15 L 19 21 L 14 21 L 14 26 L 13 26 L 13 21 L 8 21 L 8 15 L 13 15 L 13 12 L 5 12 L 5 6 L 13 6 L 13 1 Z" />
              </svg>
            </div>
            <div class="draginput_cell" id="tool_alignright" title="右对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path
                  d="M 25 1 L 25 5 L 13 5 L 13 11 L 25 11 L 25 16 L 7 16 L 7 22 L 25 22 L 25 26 L 26 26 L 26 1 L 25 1 Z" />
              </svg>
            </div>
            <div class="draginput_cell" id="tool_aligntop" title="上对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path d="M 1 2 L 5 2 L 5 14 L 11 14 L 11 2 L 16 2 L 16 20 L 22 20 L 22 2 L 26 2 L 26 1 L 1 1 L 1 2 Z" />
              </svg>
            </div>
            <div class="draginput_cell" id="tool_alignmiddle" title="中间对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path
                  d="M 26 13 L 26 14 L 21 14 L 21 22 L 15 22 L 15 14 L 12 14 L 12 19 L 6 19 L 6 14 L 1 14 L 1 13 L 6 13 L 6 8 L 12 8 L 12 13 L 15 13 L 15 5 L 21 5 L 21 13 L 26 13 Z" />
              </svg>
            </div>
            <div class="draginput_cell" id="tool_alignbottom" title="下对齐">
              <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
                <path
                  d="M 1 25 L 5 25 L 5 13 L 11 13 L 11 25 L 16 25 L 16 7 L 22 7 L 22 25 L 26 25 L 26 26 L 1 26 L 1 25" />
              </svg>
            </div>
          </div>
        </div>
        <div class="clearfix"></div>

      </div>

      <div id="stroke_panel" class="context_panel clearfix">
        <div class="clearfix"></div>
        <h4>画笔</h4>
        <div class="toolset" data-title="Change stroke">
          <label>
            <input id="stroke_width" size="2" value="5" data-attr="stroke-width" min="0" max="99" step="1" />
            <span class="icon_label">宽度</span>
          </label>
        </div>
        <div class="stroke_tool draginput">
          <span>样式</span>
          <select id="stroke_style" data-title="Change stroke dash style">
            <option selected="selected" value="none">—</option>
            <option value="2,2">···</option>
            <option value="5,5">- -</option>
            <option value="5,2,2,2">-·-</option>
            <option value="5,2,2,2,2,2">-··-</option>
          </select>
          <div class="caret" style="top:45%"></div>
          <label id="stroke_style_label" style="margin-top:20px;">—</label>
          <style>
            #_stroke_style {
              padding: 3px;
              font-size: 14px;
              height: 24px;
              box-shadow: none;
              left: 0px;
              top: 45px;
              position: absolute;
              box-sizing: border-box;
              border-radius: 3px;
            }
          </style>
          <input id="_stroke_style" data-attr="_troke-style" readonly="readonly" />
        </div>

        <label style="display: none;">
          <span class="icon_label">Stroke Join</span>
        </label>

        <label style="display: none;">
          <span class="icon_label">Stroke Cap</span>
        </label>
      </div>
      <div id="plc_bind" class="context_panel clearfix">
        <div id='plc_bind_lable' style="display: none;">
          <h4></h4>
        </div>
        <table id="plc_bind_table" style="width:100%;position: relative;color:white;padding-right:15px">
          <tr style="height:0px">
            <td width=30px></td>
            <td></td>
          </tr>
          <tr>
            <td width='55px'>X位移</td>
            <td>
              <div>
                <select> </select>
                <textarea id='plc_translateX' warp='off' class='plc_bind_editor' spellcheck=false aria-label="X位移"
                  data-attr="plc_transform" data-subattr="translateX"></textarea>
              </div>
            </td>

          </tr>
          <tr>
            <td>Y位移</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_translateY' warp='off' class='plc_bind_editor' spellcheck=false aria-label="Y位移"
                  data-attr="plc_transform" data-subattr="translateY"></textarea> </div>
            </td>
          </tr>
          <tr>
            <td>X缩放</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_scaleX' warp='off' class='plc_bind_editor' spellcheck=false aria-label="X缩放"
                  data-attr="plc_transform" data-subattr="scaleX"></textarea>
              </div>
            </td>

          </tr>
          <tr>
            <td>Y缩放</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_scaleY' warp='off' class='plc_bind_editor' spellcheck=false aria-label="Y缩放"
                  data-attr="plc_transform" data-subattr="scaleY"></textarea>
              </div>
            </td>

          </tr>
          <tr>
            <td>宽度</td>
            <td>
              <div> <select></select>
                <textarea id='plc_width' warp='off' class='plc_bind_editor' spellcheck=false aria-label="宽度"
                  data-attr="plc_width"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>高度</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_width' warp='off' class='plc_bind_editor' spellcheck=false aria-label="高度"
                  data-attr="plc_height"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>角度</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_rotate' warp='off' class='plc_bind_editor' spellcheck=false aria-label="角度"
                  data-attr="plc_transform" data-subattr="rotate"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>背景颜色</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_fill' warp='off' class='plc_bind_editor' spellcheck=false aria-label="背景颜色"
                  data-attr="plc_fill"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>画笔颜色</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_stroke' warp='off' class='plc_bind_editor' spellcheck=false aria-label="画笔颜色"
                  data-attr="plc_stroke"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>背景透明</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_fill-opacity' warp='off' class='plc_bind_editor' spellcheck=false aria-label="背景透明"
                  data-attr="plc_fill-opacity"></textarea>
              </div>
            </td>
          </tr>
          <tr>
            <td>画笔透明</td>
            <td>
              <div>
                <select></select>
                <textarea id='plc_stroke-opacity' warp='off' class='plc_bind_editor' spellcheck=false aria-label="背景透明"
                  data-attr="plc_stroke-opacity"></textarea></div>
            </td>
          </tr>
        </table>
      </div>
    </div> <!-- tools_top -->

    <div id="cur_context_panel">

    </div>


    <div id="tools_left" class="tools_panel">
      <div class="tool_button" id="tool_select" title="Select Tool [V]">
        <svg viewBox="0 0 24 24" width="24" height="24">
          <path d="M17.15 20.76l-2.94 1.5-3.68-6-4.41 3V1.24l12.5 12.01-4.41 1.5 2.94 6z" />
        </svg>
      </div>
      <div class="tool_button" id="tool_fhpath" title="Pencil Tool [P]">
        <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"
          style="transform: scale(-1,1)">
          <path
            d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" />
        </svg>
      </div>
      <div class="tool_button" id="tool_line" title="Line Tool [L]">
        <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
          <path d="M 3 1 L 26 24 L 24 26 L 1 3 L 3 1 Z"></path>
        </svg>
      </div>
      <div class="tool_button" id="tool_rect" title="Square/Rect Tool [R]">
        <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
          <path d="M 0 8 L 0 24 L 24 24 L 25 8 L 0 8 Z" />
        </svg>
      </div>
      <div class="tool_button" id="tool_ellipse" title="Ellipse/Circle Tool [C]">
        <svg viewBox="0 0 27 27" xmlns="http://www.w3.org/2000/svg" width="24" height="24">
          <ellipse cx="13" cy="13" rx="13" ry="9"></ellipse>
        </svg>
      </div>

      <div class="tool_button" title="Shape Tool [C]" id="tool_shapelib">
        <svg xmlns="http://www.w3.org/2000/svg" height="27" width="27" viewBox="0 0 24 24">
          <polygon points="14.43,10 12,2 9.57,10 2,10 8.18,14.41 5.83,22 12,17.31 18.18,22 15.83,14.41 22,10" />
        </svg>
        <div class="tool_menu">

        </div>
      </div>

      <div class="tool_button" id="tool_path" title="Path Tool [P]">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 27" width="27" height="27">
          <path
            d="M12.2 1.9c0-.36.86 0 .86 0V14a1.3 1.3 0 10.88 0V1.9s.87-.36.87 0c0 6.81 5.22 11.68 5.22 11.68l-3.25 8.2h-6.55l-3.26-8.2s5.22-4.87 5.22-11.68zM7.83 25.26v-2.61h11.32v2.6H7.84z" />
        </svg>
      </div>
      <div class="tool_button" id="tool_text" title="Text Tool [T]">
        <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="2 2 20 20" width="27" height="27">
          <path d="M5 4v3h5.5v12h3V7H19V4z" /></svg>
      </div>

      <div class="tool_button" id="tool_zoom" title="Zoom Tool [Z]">
        <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="2 2 20 20" width="27">
          <path
            d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
        </svg>
      </div>

      <div class="tool_button" id="tool_eyedropper" title="Eyedropper Tool [Z]">
        <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="2 2 20 20" width="27"
          style="transform: scale(-1, 1)">
          <path
            d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z" />
        </svg>
      </div>

      <div id="color_tools">
        <div id="tool_switch" title="Switch stroke and fill colors [X]"></div>
        <div class="color_tool active" id="tool_fill">
          <label class="icon_label" title="Change fill color"></label>
          <div class="color_block">
            <div id="fill_bg"></div>
            <div id="fill_color" class="color_block"></div>
          </div>
        </div>

        <div class="color_tool" id="tool_stroke">
          <label class="icon_label" title="Change stroke color"></label>
          <div class="color_block">
            <div id="stroke_bg"></div>
            <div id="stroke_color" class="color_block" title="Change stroke color"></div>
          </div>
        </div>
      </div>
    </div> <!-- tools_left -->

    <div id="tools_bottom" class="tools_panel">

      <!-- Zoom buttons -->
      <div id="zoom_panel" class="toolset" title="Change zoom level">
        <div class="draginput select" id="zoom_label">
          <span id="zoomLabel" class="zoom_tool icon_label">
            <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="2 2 20 20" width="27">
              <path
                d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
            </svg>
          </span>
          <select id="zoom_select">
            <option value="6">6%</option>
            <option value="12">12%</option>
            <option value="16">16%</option>
            <option value="25">25%</option>
            <option value="50">50%</option>
            <option value="75">75%</option>
            <option value="100" selected="selected">100%</option>
            <option value="150">150%</option>
            <option value="200">200%</option>
            <option value="300">300%</option>
            <option value="400">400%</option>
            <option value="600">600%</option>
            <option value="800">800%</option>
            <option value="1600">1600%</option>
          </select>
          <div class="caret"></div>
          <input id="zoom" size="3" value="100%" type="text" readonly="readonly" />
        </div>
      </div>

      <div id="palette" title="Click to change fill color, shift-click to change stroke color"></div>
      <div id="animation_panel" style="position: absolute;right: 330px;height:40px;line-height: 40px;display:none">
        <select id="animation_select" style="width:150px">
          <option value="">动画选择</option>
        </select>
        <button style="padding:2px 5px" name='play'>播放</button>
        <button style="padding:2px 5px" name="stop">停止</button>
        <button style="padding:2px 5px" name="change">修改</button>
        <button style="padding:2px 5px" name="append">添加</button>
        <button style="padding:2px 5px" name="remove">删除</button>
        <select id="bind_plc">
          <option value="">选择PLC点</option>
        </select>
      </div>
    </div>

    <!-- hidden divs -->
    <div id="color_picker"></div>
    <div id="animator_editor" style="display: none;"></div>
  </div> <!-- svg_editor -->

  <div id="svg_source_editor">
    <div id="svg_source_overlay"></div>
    <div id="svg_source_container">
      <div id="save_output_btns">
        <p id="copy_save_note">Copy the contents of this box into a text editor, then save the file with a .svg
          extension.</p>
        <button id="copy_save_done">Done</button>
      </div>
      <form>
        <textarea id="svg_source_textarea" spellcheck="false"></textarea>
      </form>
      <div id="tool_source_back" class="toolbar_button">
        <button id="tool_source_cancel" class="cancel">Cancel</button>
        <button id="tool_source_save" class="ok">Apply Changes</button>
      </div>
    </div>
  </div>

  <div id="dialog_box">
    <div id="dialog_box_overlay"></div>
    <div id="dialog_container">
      <div id="dialog_content"></div>
      <div id="dialog_buttons"></div>
    </div>
  </div>

  <ul id="cmenu_canvas" class="contextMenu">
    <li><a href="#cut">剪切<span class="shortcut">⌘X;</span></a></li>
    <li><a href="#copy">复制<span class="shortcut">⌘C</span></a></li>
    <li><a href="#paste">粘贴<span class="shortcut">⌘V</span></a></li>
    <li class="separator"><a href="#delete">删除<span class="shortcut">⌫</span></a></li>
    <li class="separator"><a href="#group">组合<span class="shortcut">⌘G</span></a></li>
    <li><a href="#ungroup">分解<span class="shortcut">⌘⇧G</span></a></li>
    <li><a href="#topath">转换为路径<span class="shortcut">⌘⇧E</span></a></li>
    <li class="separator"><a href="#move_front">置顶<span class="shortcut">⌘⇧↑</span></a></li>
    <li><a href="#move_up">置前<span class="shortcut">⌘↑</span></a></li>
    <li><a href="#move_down">置后<span class="shortcut">⌘↓</span></a></li>
    <li><a href="#move_back">置底<span class="shortcut">⌘⇧↓</span></a></li>
    <li style="position: relative;" class="separator"><a href="#import" id="tool_import_li">导入图片</a></li>
  </ul>

  <div class="tools_flyout" id="tools_shapelib">
    <div id="shape_buttons"></div>
  </div>
  <!--#endregion-->

  <!-- build:js all.js -->
  <script type="text/javascript" src="js/lib/jquery-3.5.1.min.js"></script>
  <script type="text/javascript" src="js/lib/pathseg.js"></script>
  <script type="text/javascript" src="js/lib/touch.js"></script>
  <script type="text/javascript" src="js/lib/jquery.hotkeys.min.js"></script>
  <script type="text/javascript" src="js/lib/jquery.jgraduate.js"></script>
  <script type="text/javascript" src="js/lib/jquery-animationEditor.js"></script>
  <script type="text/javascript" src="js/lib/jquery.contextMenu.js"></script>
  <script type="text/javascript" src="js/lib/jquery-ui-1.8.17.custom.min.js"></script>
  <script type="text/javascript" src="js/browser.js"></script>
  <script type="text/javascript" src="js/svgtransformlist.js"></script>
  <script type="text/javascript" src="js/math.js"></script>
  <script type="text/javascript" src="js/units.js"></script>
  <script type="text/javascript" src="js/svgutils.js"></script>
  <script type="text/javascript" src="js/sanitize.js"></script>
  <script type="text/javascript" src="js/history.js"></script>
  <script type="text/javascript" src="js/select.js"></script>
  <script type="text/javascript" src="js/draw.js"></script>
  <script type="text/javascript" src="js/path.js"></script>
  <script type="text/javascript" src="js/dialog.js"></script>
  <script type="text/javascript" src="js/svgcanvas.js"></script>
  <script type="text/javascript" src="js/rulers.js"></script>
  <script type="text/javascript" src="js/method-draw.js"></script>
  <script type="text/javascript" src="js/palette.js"></script>
  <script type="text/javascript" src="js/lib/jquery-draginput.js"></script>
  <script type="text/javascript" src="js/lib/contextmenu.js"></script>
  <script type="text/javascript" src="js/lib/jgraduate/jpicker.min.js"></script>
  <script type="text/javascript" src="js/lib/mousewheel.js"></script>
  <script type="text/javascript" src="js/eyedropper.js"></script>
  <script type="text/javascript" src="js/shapes.js"></script>
  <script type="text/javascript" src="js/grid.js"></script>
  <script type="text/javascript" src="js/lib/requestanimationframe.js"></script>
  <script type="text/javascript" src="js/lib/taphold.js"></script>
  <script type="text/javascript" src="js/lib/filesaver.js"></script>
  <script type="text/javascript" src="js/paste.js"></script>


  <!-- endbuild -->

</body>

</html>